function[out]=rect(x);
%rectangle function

out=abs(x)<=1/2;
end


